/**
 * Copyright© 2003-2019 浙江汇信科技有限公司, All Rights Reserved. <br/>
 */
package com.icinfo.cloud.provider.punish.ucase.payment.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 描述: 案件缴款结果记录表 case_payment_result_record 对应的实体类.<br>
 * WARNING：不是表中字段的属性必须加@Transient注解
 *
 * @author framework generator
 * @date 2022年03月02日
 */
@Table(name = "upcase.case_payment_result_record")
@Data
public class CasePaymentResultRecord implements Serializable {
    /**
     * 主键id
     */
    @Id
    @Column(name = "id")
    private String id;

    /**
     * 案件id
     */
    @Column(name = "case_id")
    private String caseId;

    /**
     * 缴款单号
     */
    @Column(name = "notice_no")
    private String noticeNo;

    /**
     * 业务单号
     */
    @Column(name = "original_notice_no")
    private String originalNoticeNo;

    /**
     * 缴款单来源渠道编号
     */
    @Column(name = "channel_no")
    private String channelNo;

    /**
     * 业务码
     */
    @Column(name = "yw_code")
    private String ywCode;

    /**
     * 支付单号
     */
    @Column(name = "pay_list_no")
    private String payListNo;

    /**
     * 支付流水号
     */
    @Column(name = "pay_no")
    private String payNo;

    /**
     * 缴款凭证号
     */
    @Column(name = "certificate_no")
    private String certificateNo;

    /**
     * 代收机构编号
     */
    @Column(name = "trade_code")
    private String tradeCode;

    /**
     * 代收机构名称
     */
    @Column(name = "trade_name")
    private String tradeName;

    /**
     * 支付方式编码
     */
    @Column(name = "way_code")
    private String wayCode;

    /**
     * 支付方式名称
     */
    @Column(name = "way_name")
    private String wayName;

    /**
     * 交易流水号
     */
    @Column(name = "trade_no")
    private String tradeNo;

    /**
     * 业务归属日期
     */
    @Column(name = "trade_date")
    private String tradeDate;

    /**
     * 校验码
     */
    @Column(name = "check_code")
    private String checkCode;

    /**
     * 缴款金额
     */
    @Column(name = "pay_money")
    private String payMoney;

    /**
     * 缴款日期
     */
    @Column(name = "pay_date")
    private String payDate;

    /**
     * 缴款时间
     */
    @Column(name = "pay_time")
    private String payTime;

    /**
     * 创建时间
     */
    @Column(name = "create_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createTime;

    /**
     * 最近更新时间
     */
    @Column(name = "update_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime updateTime;

    /**
     * 电子发票地址（多个逗号分隔）
     */
    @Column(name = "electric_invoice_address")
    private String electricInvoiceAddress;

    /**
     * 缴款结果处理状态（0-待处理/1-已处理）
     */
    @Column(name = "deal_status")
    private String dealStatus;

    /**
     * 处理失败原因
     */
    @Column(name = "deal_fail_reason")
    private String dealFailReason;

    /**
     * 是否删除(0-否/1-是)
     */
    @Column(name = "is_delete")
    private String isDelete;

    /**
     * 电子发票地址（重庆使用）
     */
    @Column(name = "elc_invoice_pic_url")
    private String elcInvoicePicUrl;

    private static final long serialVersionUID = 1L;
}